﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JzSport.Model
{
    public interface IAccountRepository
    {
        bool Create(Account account);

        Account Get(int id);

        /// <summary>
        /// 通过手机好吗获取账号信息
        /// </summary>
        /// <param name="phone"></param>
        /// <returns></returns>
        Account GetByPhone(string phone);

        /// <summary>
        /// 通过第三方账号获取账号信息
        /// </summary>
        /// <param name="thirdPartType"></param>
        /// <param name="thirdPartyAccount"></param>
        /// <returns></returns>
        Account GetByThirdPartyAccount(string thirdPartType, string thirdPartyAccount);

        void Update(int id, Account account);

        bool Delete(Guid id);
    }
}
